#pragma once
#include <map>
#include "Singleton.h"
#include "gameinfo.h"


class GameInfoMgr
{
public:
    GameInfoMgr();
    virtual ~GameInfoMgr();

public:
    static GameInfoMgr* Instance()
	{
		return CSingleton<GameInfoMgr>::Instance();
	}

public:
    stGameInfo* Get(const std::uint32_t agency_id, const std::uint32_t game);
    bool Update(stGameInfo&& gameinfo);
    bool Update(const stGameInfo& gameinfo);

private:
    std::map<std::uint32_t, std::map<std::uint32_t, stGameInfo>> m_mgr;
};











